package kr.co.doriclassic.pro09;

public class Plane {
	private String sCompany, sModel;
	private int iPassenger;
	private static int iPlanes=0;
	public Plane() {
		//this(null,null,0);
		sCompany = null; 
		sModel = null; 
		iPassenger = 0;
		iPlanes++;
	}
	public Plane(String sCompany, String sModel, int iPassenger) {
		this.sCompany = sCompany;
		this.sModel = sModel;
		this.iPassenger = iPassenger;
		iPlanes++;
	}
	public String getsCompany() {
		return sCompany;
	}
	public void setsCompany(String sCompany) {
		this.sCompany = sCompany;
	}
	public String getsModel() {
		return sModel;
	}
	public void setsModel(String sModel) {
		this.sModel = sModel;
	}
	public int getiPassenger() {
		return iPassenger;
	}
	public void setiPassenger(int iPassenger) {
		this.iPassenger = iPassenger;
	}
	@Override
	public String toString() {
		return "비행기 [제조사=" + sCompany + ", 모델=" + sModel
				+ ", 최대승객수=" + iPassenger + "]";
	}
	public int getPlanes(){
		return iPlanes;
	}
}
